﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="System.Web.Mvc.ViewPage" %>
<% if (ViewData["notifications"] != null)
   { %>
   
   <div id="showmessage" style="display: none;">
		<span>You have <%= Html.ActionLink(ViewData["notifications"] + " new message" + (Int32.Parse(ViewData["notifications"].ToString()) > 1 ? "s" : ""), "Messages", "Users")%>.</span>
		<a href="#" class="close-notify">X</a>
	</div>
	
	<script type="text/javascript" language="javascript">
		$(document).ready(function() {
			$("#showmessage").fadeIn("slow");
			$("#showmessage a.close-notify").click(function() {
				$("#showmessage").fadeOut("slow");
				return false;
			});
		});
	</script>

<% } %>